<?php
namespace backend\models;

use Yii;
use yii\base\Model;

class TestSearch extends Model{
	public $name;
	public $phone;

	public function rules(){
		return [
			['name', 'string', 'min' => 2, 'max' => 10],
			['phone', 'string', 'min' => 11, 'max' => 11],
		];
	}
}